package com.redblacktree;

public class RedBlackTreeDemo {
    public static void main(String[] args) {
        //创建红黑树
        RedBlackTree<String,String> tree = new RedBlackTree<>();

        //往树中插入元素
        tree.put("1","g");
        tree.put("2","z");
        tree.put("3","c");
        tree.put("4","cc");
        //从树种获取元素
        System.out.println(tree.get("1"));
    }
}
